package com.dao;

import com.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {

    //add a book
    int addBook(Books books);

    //delete a book
    int deleteBookByID(@Param("bookID") int id);

    //update a book
    int updateBook(Books books);

    //find a book
    Books querybookbyId(@Param("bookID") int id);

    //quert all books
    List<Books> queryAllBook();
}
